#include<bits/stdc++.h>
using namespace std;

//int cnt['z' + 5];
unordered_map<char, int> cnt;

signed main() {
	char ch;
	while (cin >> ch) {
		cnt[ch]++;
	}

	int mx = INT_MIN, mn = INT_MAX;
	for (auto i : cnt) {
		mx = mx > i.second ? mx : i.second;
		mn = mn < i.second ? mn : i.second;
	}

//	for (char i = 'a'; i <= 'z'; i++) {
//		if (!cnt[i])	continue;
//
//		mx = mx > cnt[i] ? mx : cnt[i];
//		mn = mn < cnt[i] ? mn : cnt[i];
//	}

	if (mx - mn < 2) {
		cout << "No Answer\n0";
		return 0;
	}

	for (int i = 2; i <= sqrt(mx - mn); i++) {
		if ((mx - mn) % i == 0) {
			cout << "No Answer\n0";
			return 0;
		}
	}
	cout << "Lucky Word\n" << mx - mn;
	return 0;
}
